package com.fishery.customization.service;


import com.fishery.customization.entity.DraggableModule;

import java.util.List;

public interface DraggableModuleService {

	/**
	 * 查询所有可拖拽的模块
	 *
	 * @return
	 */
	List<DraggableModule> getAllDraggableModules();

	/**
	 * 通过id删除可拖拽的模块
	 *
	 * @param id
	 * @return
	 */
	boolean removeDraggableModuleById(String id);

	/**
	 * 修改可拖拽模块
	 *
	 * @param draggableModule
	 * @return
	 */
	boolean updateDraggableModuleById(DraggableModule draggableModule);

	/**
	 * 保存可拖拽模块
	 *
	 * @param draggableModule
	 * @return
	 */
	boolean saveDraggableModule(DraggableModule draggableModule);

	/**
	 * 批量保存可拖拽模块
	 *
	 * @param modules
	 * @return
	 */
	boolean saveDraggableModule(List<DraggableModule> modules);

	/**
	 * 批量删除可拖拽模块
	 *
	 * @param ids
	 * @return
	 */
	boolean removeDraggableModuleWithBatch(List<String> ids);
}
